package com.itheima.demo02.Recursion;

public class Demo03Recursion {
    public static void main(String[] args) {
        long plus = jieCheng(5);
        System.out.println(plus);
    }

    public static long jieCheng(int n) {
        if (n == 1) {
            return 1;
        }
        return n * jieCheng(n - 1);
    }
}
